<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>Thuc thi giao dien</h2>
khai bao
	su dung tu khoa interface
thuc thi giao dien
	co the thuc thi nhieu giao dien
	co the mo rong 1 giao dien
khong the tao the hien cua giao dien 1 cach truc tiep
nhung co the su dung giao dien de tao the hien
cua 1 lop da thuc thi giao dien // tuong tu java

su dung toan tu is de kiem tra 1 the hien nao do
co thuc thi giao dien hay khong
nhung su dung is co 1 ngoai le => khi thao tac voi giao dien nen su dung
toan tu as
// kiem tra 1 doi tuong co ho tro giao dien hay khong
 	ICompressible icDoc = doc as ICompressible;
	if ( icDoc != null){
		icDoc.Compress();
	}else{
		Console.WriteLine(“Compressible not supported”);
	}

C# khong cho phep da ke thua

khi thuc thi 2 giao dien ma 2 giao dien co 1 phuong thuc giong nhau
 => phai co phuogn an giai quyet
</body>
</html>